package cn.rocksolid.sport.assist.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.rocksolid.sport.agency.entity.SmtpSettingEntity;
import cn.rocksolid.sport.assist.email.EmailProvider;
import cn.rocksolid.sport.assist.entity.EmailEntity;
import cn.rocksolid.sport.assist.service.EmailService;

@Service
public class EmailServiceImpl implements EmailService {

  @Autowired
  private EmailProvider emailProvider;

  @Override
  public void sendSmtpEmail(SmtpSettingEntity smtpSettingEntity, EmailEntity emailEntity) {
    emailProvider.sendSmtpEmail(smtpSettingEntity, emailEntity);
  }
}
